<?php
/**
 * @version      BOSSCMS-Free
 * @trademark    BOSSCMS
 * @copyright    Copyright © by BOSSCMS-Free (https://www.bosscms.net/) 保留所有权利
 * @license      https://gitee.com/Greenpeas/BOSSCMS/license/ 和 https://www.bosscms.net/freelicense/
 * @link         https://www.bosscms.net/
 * @author       温州软界网络技术有限公司
**/
defined('IS_OK') or exit('Access Forbidden');
?>
<?php load::into('head'); ?>
<form action="<?php echo url::mpf('tag','tag','add'); ?>" method="post" enctype="multipart/form-data">
<?php global $aE; $aE=isset($data)?$data:null; ?>
<section class="main form">  
  <aside>
    <div>
      <h2>
        <strong>标签设置</strong>
      </h2>
      <?php if($data){ ?>
	  <dl>
		<dt>
		  <strong>标签名称</strong>
		</dt>
		<dd>
		  <?php echo form::input('title',aE('title'),null,'text',array('width5','placeholder'=>'请输入标签名称')); ?>
		</dd>
	  </dl>
	  <dl>
		<dt>
		  <strong>路径名称</strong>
		</dt>
		<dd>
		  <?php echo form::input('name',aE('name'),null,'text',array('width6','placeholder'=>'请输入路径名称')); ?>
          <cite>标签不填写则使用id作为标签默认路径值；<br>如要修改，建议用纯英文或英文开头夹数字的名称来组合</cite>
		</dd>
	  </dl>
      <?php }else{ ?>
	  <dl>
		<dt>
		  <strong>栏目模型</strong>
		</dt>
		<dd>
		  <?php echo form::checkbox('type',aE('type'),$G['get']['type'],$G['type']); ?>
		</dd>
	  </dl>
	  <dl>
		<dt>
		  <strong>标签名称</strong>
		</dt>
		<dd>
		  <?php echo form::textarea('title',aE('title'),null,array('param','row'=>2,'placeholder'=>'["请输入标签名称"]')); ?>
          <cite>新增标签时可以进行批量添加；<br>如要修改其他标签信息可新增好标签后每个标签单独配置</cite>
		</dd>
	  </dl>
      <?php } ?>
    </div>
  </aside>
</section>

<section class="refer">
  <button class="button ok" type="submit">
    <em class="fa fa-floppy-o"></em>
    <font>保存</font>
  </button>
</section>  
</form>
<?php load::into('foot'); ?>